package com.stu.mapper;

import com.stu.pojo.ClassJobApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface CounsellorOperateMapper {

    @Update("update stu_message.scholarship_stu_information set counsellor_examine = #{result} where id = #{id}")
    void examineScholarship(Integer result, Integer id);

    @Update("update stu_message.class_job_application set status =#{result} where id = #{id}")
    void examineClassJob(Integer result, Integer id);

    @Select("select * from class_job_application where id = #{id}")
    ClassJobApplication selectJobApplication(Long id);

    @Update("update violation_application set counsellor_examine = #{result},counsellor_id = #{currentId} where id = #{id}")
    void examineViolation(Integer result, Integer id, Long currentId);

    @Update("update excuse_application set status = #{result} where id = #{id}")
    void examineExcuse(Integer result, Integer id);
}
